{% extends 'picasso/base.html' %}

{% block title %}Photo Album - {{ album.title }}{% endblock %}

{% block body_id %}picasso_view_album{% endblock %}

{% block content %}
    <h1>{{ album.title }}</h1>
    <h2 class="explain">
        {% if album.summary %}
            {{ album.summary }}
        {% else %}
            An album of photos shared online
        {% endif %}
    </h2>
    {% for photo in photos %}
    <div class="picasa-photo">
        <a href="{% url picasso_view_photo photo.photoid %}"
            title="{{ photo.title }}">
            <h3>{{ photo.title }}</h3>
            {% if photo.summary %}
                <p>{{ photo.summary }}</p>
            {% else %}
                <p>(no summary)</p>
            {% endif %}
            {% with photo.thumbnails.all.1 as thumb %}
            <img src="{{ thumb.url }}" alt="{{ photo.title }}" />
            {% endwith %}
            <p class="published">Published on
                {{ photo.published|date:"n/j/y" }}</p>
        </a>
    </div>
    {% endfor %}
    <div class="clear"></div>
    <p><a href="{% url picasso_index %}">View the latest albums and photos...
        </a></p>
    <p><a href="{% url picasso_list_albums %}">View all albums...
        </a></p>
{% endblock %}